$(document).ready(function(){ 
  var sw = new Swiper('.bn', {
    loop: true,
    autoplay: true,
    pagination: {
      el: '.bn-pag',
      clickable: true,
    },
    lazy: {
      loadPrevNext: true,
    },
    parallax: true,
    speed: 1000,
    //autoplay: '4000',
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.bn-next',
      prevEl: '.bn-prev',
    },
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
  });
  
  
  var cp = new Swiper('.i-cp-bn', {
    // loop: true,
    autoplay: true,
    pagination: {
      el: '.cp-pag',
      clickable: true,
      dynamicBullets: true,
    },
    lazy: {
      loadPrevNext: true,
    },
    parallax: true,
    slidesPerView:2,
    spaceBetween: 10,
    speed: 1000,
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
  });
  var a3bn = new Swiper('.a3-bn', {
    // loop: true,
    autoplay: true,
    pagination: {
      el: '.a3-pag',
      clickable: true,
      dynamicBullets: true,
    },
    lazy: {
      loadPrevNext: true,
    },
    parallax: true,
    slidesPerView:2,
    spaceBetween: 10,
    speed: 1000,
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
  });

  var a5bn = new Swiper('.a5-bn', {
    // loop: true,
   // autoplay: true,
    pagination: {
      el: '.a5-pag',
      clickable: true,
      dynamicBullets: true,
    },
    lazy: {
      loadPrevNext: true,
    },
    parallax: true,
    slidesPerView: 2,//一行显示3个
    slidesPerColumn: 2,//显示2行 
    spaceBetween: 10,
    slidesPerColumnFill : 'row',
    speed: 1000,
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
  })
  var artcpdt = new Swiper('.art-cp-dt', {
    // 如果需要分页器
    speed: 1000,
    //autoplay: '4000',
    // 如果需要前进后退按钮
    slidesPerView: 1,
    spaceBetween: 10,
    navigation: {
      nextEl: '.art-cp-next',
      prevEl: '.art-cp-prev',
    },
    paginationClickable: true, //分页点点击控制
    resizeReInit: true, ///宽度改变初始化
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper
  });
  var artcpxt = new Swiper('.art-cp-xt', {
    // 如果需要分页器
    speed: 1000,
    //autoplay: '4000',
    // 如果需要前进后退按钮
    slidesPerView: 4,
    spaceBetween: 10,
    direction: 'horizontal',
    slideToClickedSlide: true,
    paginationClickable: true, //分页点点击控制
    resizeReInit: true, ///宽度改变初始化
    observer: true, //修改swiper自己或子元素时，自动初始化swiper
    observeParents: true, //修改swiper的父元素时，自动初始化swiper

  });
  var al = new Swiper('.al-bn', {
    
    autoplay: true,
    pagination: {
      el: '.al-pag',
      clickable: true,
    },
    lazy: {
      loadPrevNext: true,
    },
    parallax: true,
    speed: 1000,
    //autoplay: '4000',
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.al-next',
      prevEl: '.al-prev',
    },
    observer:true,//修改swiper自己或子元素时，自动初始化swiper 
      observeParents:true//修改swiper的父元素时，自动初始化swiper
  });
  
  
  }) 